﻿#include"FITKAbsGeoModelLowDie.h"
#include "FITK_Interface/FITKInterfaceModel/FITKAbstractModel.h"

namespace Interface
{

    FITKAbsGeoModelLowDie::~FITKAbsGeoModelLowDie()
    {

    }

    void FITKAbsGeoModelLowDie::setLocation(double* p1)
    {
        //p1 is the location of the cylinder
        if (p1 == nullptr) return;
        FITKAbstractModel::CopyArray(p1, _location, 3);
    }

    void FITKAbsGeoModelLowDie::getLocation(double* p1)
    {
        if (p1 == nullptr) return;
        FITKAbstractModel::CopyArray(_location, p1, 3);
    }

    void FITKAbsGeoModelLowDie::setDirection(double* p2)
    {
        //p2 is the direction of the cylinder
        if (p2 == nullptr) return;
        FITKAbstractModel::CopyArray(p2, _direction, 3);
    }

    void FITKAbsGeoModelLowDie::getDirection(double* dir)
    {
        //p2 is the direction of the cylinder
        if (dir == nullptr) return;
        FITKAbstractModel::CopyArray(_direction, dir,3);
    }

    void FITKAbsGeoModelLowDie::setRadius(double r)
    {

        _radius = r;
    }

    double FITKAbsGeoModelLowDie::getRadius() const
    {
        return _radius;
    }

    void FITKAbsGeoModelLowDie::setLength1(double length)
    {
        //length is the length of the cylinder
        _length1 = length;
    }

    double FITKAbsGeoModelLowDie::getLength1() const
    {
        return _length1;
    }

    void FITKAbsGeoModelLowDie::setLength2(double length)
    {
        _length2 = length;
    }

    double FITKAbsGeoModelLowDie::getLength2() const
    {
        return _length2;
    }

    void FITKAbsGeoModelLowDie::setHeight0(double height)
    {
        _height0 = height;
    }

    double FITKAbsGeoModelLowDie::getHeight0() const
    {
        return _height0;
    }

    FITKGeoEnum::FITKGeometryComType FITKAbsGeoModelLowDie::getGeometryCommandType()
    {
        return FITKGeoEnum::FGTLowDie;
    }

}
